package com.guangyunl.h_polymorphic;
// 实现类猫
public class Cat extends Animal {
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }

    // 特有方法
    public void catchMouse(){
        System.out.println("猫抓老鼠");
    }

}
